<!--vue模板-->
<template>
  <div>
    <!--搜索条件-->
    <div style="border: #fff solid 1px;background-color: #fff; ">
      <el-form style="margin-top: 15px;">
        <el-row>
          <el-col :span="4" style="margin-left: 15px;">
            <el-form-item label="订单编号 :">
              <el-input  placeholder="请输入" />
            </el-form-item>
          </el-col>
          <el-button style="margin-left: 100px;" type="primary">查询</el-button>
          <el-button type="primary" @click="reset">重置</el-button>
        </el-row>
      </el-form>
    </div>
    <!--客户列表-->
    <el-table :data="tableData" style="width: 100%" stripe border>
      <el-table-column type="index" label="行号" width="80" header-align="center" align="center" />
      <el-table-column prop="quote_coding" label="订单编号" width="200" header-align="center" align="center" />
      <el-table-column prop="quotation" label="销售订单编号" width="200" header-align="center" align="center" />
      <el-table-column prop="quote_data" label="创建时间" width="300" header-align="center" align="center" />
      <el-table-column label="操作" header-align="center" align="center">
          <el-button  type="primary" text>查看详情</el-button>
          <el-button  type="primary" text>单据管理</el-button>
          <el-button  type="primary" text>查看发货</el-button>
          <el-button  type="primary" text>催促报关单</el-button>
      </el-table-column>
    </el-table>
    <!--分页-->
    <div style="background-color: #fff; height: 50px; line-height: 50px;">
      <el-pagination background :page-size="pageSize" layout="total,sizes,prev, pager, next, jumper" :total="total"
        @size-change="chgsize" @current-change="chgpg" />
    </div>
  </div>
</template>

<!--vue组件选项定义-->
<script setup>
import { ref, onBeforeMount } from "vue";
//引入api
//引入路由
import { useRouter } from "vue-router";
//表格数据
const tableData = ref([]);
//路由实例
const router = useRouter();

//搜索条件
const freightinquiry = ref({
  
});
//重置
function reset() {
  freightinquiry.value = {
    
  };
  initData();
}
//分页信息
const page = ref(1);//当前页 默认第一页
const pageSize = ref(10);//每页记录数
const total = ref(0);//总记录数

//每页记录数的变更
function chgsize(size) {
  //更改每页记录数
  pageSize.value = size;
  //从第一页开始查
  page.value = 1;
  //查询数据
  
};
//页面发生变化
function chgpg(pg) {
  //更改当前页
  page.value = pg;
  //查询数据
  
};

//生命周期钩子

onBeforeMount(() => {
  
});
</script>

<!--vue样式 scoped 当前样式只适用于当前组件-->
<style scoped></style>
